package com.ruikong.dazhi.dao.basicinfo;


import com.ruikong.dazhi.entity.basicinfo.ShopType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ShopType)表数据库访问层
 *
 * @author HuaJiaYi
 * @since 2021-01-19 16:35:30
 */
public interface ShopTypeMapper {

    ShopType queryById(Integer id);

    List<ShopType> queryByPId(Integer id);

    List<ShopType> queryAllShopTypeTree();

    Integer insert(ShopType shopType);

    Integer update(ShopType shopType);

    Integer deleteById(Integer id);

    Integer isExist(@Param("id") int id, @Param("shopTypeName") String shopTypeName);

    ShopType queryShopTypeByName(String shopTypeName);
}